#include <iostream>

int main() {
    int k,index=0;
    scanf("%d",&k);
    for(double Sn=0;Sn<=k;index++,Sn+=1.0/index);
    printf("%d",index);
    return 0;
}
